import 'package:flutter/material.dart';

class SettingPage extends StatefulWidget {
  SettingPage({Key key}) : super(key: key);
  @override
  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Center(
        child: Column(
      children: [
        SizedBox(
          height: 30,
        ),
        Text('我是设置页'),
        SizedBox(
          height: 30,
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/register1');
          },
          child: Text('去注册页面'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/buttonrTest');
          },
          child: Text('按钮页面'),
        ),
      ],
    ));
  }
}
